﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MealsReport.aspx.cs" Inherits="Smart.Pages.MealsReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        Отчет за приетите калории
    </h2>
    <br />
    <asp:GridView  ID="grid" runat="server" AllowPaging="True" 
        PageSize="10" Width="607px"
        HeaderStyle-CssClass="table_header" RowStyle-Wrap="false"
        RowStyle-HorizontalAlign="Center" BorderColor="White" GridLines="None"
        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
        AutoGenerateColumns="false">

        <RowStyle BackColor="White" Height="32px" />
        <PagerStyle BackColor="LightGray" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#4b6c9e" Font-Bold="True" ForeColor="White" />

      <Columns>
        <asp:TemplateField HeaderText="Храна">
            <ItemTemplate> <%# Eval("MealName") %> </ItemTemplate>
        </asp:TemplateField>
         <asp:TemplateField HeaderText="Категория">
            <ItemTemplate> <%# Eval("Category") %> </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Детайли">
            <ItemTemplate> <%# Eval("Details") %> </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Дата">
            <ItemTemplate> <%# Eval("CreatedOn") %> </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Калории">
            <ItemTemplate> <%# Eval("Energy") %> </ItemTemplate>
        </asp:TemplateField>
      </Columns>
 </asp:GridView>
 <br /><br />
 <asp:Image ID="pieChartImage" width="300" height="225" alt="" runat="server" />
 <br /> <br />  
</asp:Content>
